/** @file   ui.h
    @author M. P. Hayes, UCECE
    @date   21 August 2007
    @brief  User interface for temperature controller.
*/
#ifndef UI_H
#define UI_H

#include "config.h"


/** Set the current temperature for display.
    @param temp current temperature  */
extern void ui_temp_current_set (uint8_t temp);


/** Get the setpoint temperature.
    @return the setpoint temperature  */
extern uint8_t ui_temp_setpoint_get (void);


/** Update display and poll buttons.  */
extern void ui_update (void);


/** Initialise user interface.
    @param update_rate the rate that \c ui_update called  */
extern void ui_init (uint16_t update_rate);


extern void ui_error_set(uint8_t error_code);

#endif /* UI_H  */
